package com.atguigu.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author: jianPing
 * @date: 2022/3/22 15:52
 * @description:
 */
@ConfigurationProperties(prefix = "gulimall.thread")
@Data
@Component
public class ThreadPoolConfigProperties {
    /**
     * int corePoolSize,
     * int maximumPoolSize,
     * long keepAliveTime,
     */
    private int corePoolSize = 10;
    private int maximumPoolSize = 100;
    private long keepAliveTime = 10;
}
